package com.school.empsys.mapper;

import com.school.empsys.dto.EmpAppealDTO;
import com.school.empsys.model.EmpAppeal;
import com.school.empsys.model.EmpLeavePermit;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface EmpAppealMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(EmpAppeal record);

    int insertSelective(EmpAppeal record);

    EmpAppeal selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(EmpAppeal record);

    int updateByPrimaryKey(EmpAppeal record);

    Integer count(@Param("params") Map<String, Object> params);

    List<EmpAppeal> list(@Param("params") Map<String, Object> params, @Param("offset") Integer offset, @Param("limit") Integer limit);

    List<EmpAppeal> selectByEmpAppealDTO(EmpAppealDTO param);
}